import 'package:flutter/material.dart';

class ExpandedComp extends StatelessWidget {
  const ExpandedComp({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      decoration: const BoxDecoration(
        color: Colors.green,
      ),
      alignment: Alignment.topLeft,
      child: Container(
          width: double.infinity,
          height: 100,
          decoration: const BoxDecoration(
            color: Colors.pinkAccent,
          ),
          padding: const EdgeInsets.all(10),
          child: Row(
            children: [
              ClipRRect(
                borderRadius: BorderRadius.circular(10),
                child: Image.network(
                  'https://img2.baidu.com/it/u=1666858871,666753767&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=962',
                  width: 80,
                  height: 80,
                  fit: BoxFit.cover,
                ),
              ),
              const SizedBox(
                width: 10,
              ),
              Expanded(
                  flex: 1,
                  child: Container(
                    width: 80,
                    height: 80,
                    color: Colors.orangeAccent,
                  ))
            ],
          )),
    );
  }
}
